/*
 * Atualizado por Davi Uezono em 12.10.2011 às 02h01min.
 */
package Objects;

public class Color implements CRUDClass {

  private int colorID;
  private String description;

  public Color(int ID, String description) {
    this.colorID = ID;
    this.description = description;
  }

  public int getColorID() {
    return colorID;
  }

  public String getDescription() {
    return description;
  }

  public void setColorID(int colorID) {
    this.colorID = colorID;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  @Override
  public String toInsert() {
    return "INSERT INTO Color VALUES (" + this.colorID + ", '" + this.description + "')";
  }

  @Override
  public String toUpdate() {
    return "UPDATE Color SET Description = '" + this.description + "' WHERE colorID = " + this.colorID;
  }

  @Override
  public String toDelete() {
    return "DELETE FROM Color WHERE colorID = " + this.colorID;
  }
}
